package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 获取企业群发成员执行结果响应对象
 * @author: liukunlong
 * @date: 2021-03-05 10:30
 */
public class GetGroupMsgSendResultResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * next_cursor : CURSOR
     * send_list : [{"external_userid":"wmqfasd1e19278asdasAAAA","chat_id":"wrOgQhDgAAMYQiS5ol9G7gK9JVAAAA","userid":"zhangsan","status":1,"send_time":1552536375}]
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * nextCursor
     */
    @JSONField(name = "next_cursor")
    private String nextCursor;
    /**
     * sendList
     */
    @JSONField(name = "send_list")
    private List<SendListDTO> sendList;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getNextCursor() {
        return nextCursor;
    }

    public void setNextCursor(String nextCursor) {
        this.nextCursor = nextCursor;
    }

    public List<SendListDTO> getSendList() {
        return sendList;
    }

    public void setSendList(List<SendListDTO> sendList) {
        this.sendList = sendList;
    }

    public static class SendListDTO {
        /**
         * externalUserid
         */ /**
         * external_userid : wmqfasd1e19278asdasAAAA
         * chat_id : wrOgQhDgAAMYQiS5ol9G7gK9JVAAAA
         * userid : zhangsan
         * status : 1
         * send_time : 1552536375
         */

        @JSONField(name = "external_userid")
        private String externalUserid;
        /**
         * chatId
         */
        @JSONField(name = "chat_id")
        private String chatId;
        /**
         * userid
         */
        @JSONField(name = "userid")
        private String userid;
        /**
         * status
         */
        @JSONField(name = "status")
        private Integer status;
        /**
         * sendTime
         */
        @JSONField(name = "send_time")
        private Integer sendTime;

        public String getExternalUserid() {
            return externalUserid;
        }

        public void setExternalUserid(String externalUserid) {
            this.externalUserid = externalUserid;
        }

        public String getChatId() {
            return chatId;
        }

        public void setChatId(String chatId) {
            this.chatId = chatId;
        }

        public String getUserid() {
            return userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public Integer getSendTime() {
            return sendTime;
        }

        public void setSendTime(Integer sendTime) {
            this.sendTime = sendTime;
        }
    }
}
